import { stringify } from 'qs';
import request from '../utils/request';
import API from './ipConfig'

/**
 *获取图片
 *
 */
export async function getBannerImg() {
  return request(`${API}/sys/eventManage/getBannerImg`,{
    method: 'GET',
  });
}

/**
 *新增图片
 *
 */
export async function addBannerImg(params) {
  return request(`${API}/sys/eventManage/addBannerImg`,{
    method: 'POST',
    body: params,
  });
}


/**
 * 修改图片
 *
 * @export
 * @returns
 */
export async function updateRechargeConfig(params) {
  return request(`${API}/sys/eventManage/updateRechargeConfig`,{
    method: 'POST',
    body: params,

  });
}

/**
 *删除图片
 *
 */
export async function deleteBannerImg(params) {
  return request(`${API}//sys/eventManage/deleteBannerImg?bannerImgId=${params.bannerImgId}`,{
    method: 'POST',
  });
}

